﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

/// <summary>
/// 工作站设备资源表
/// </summary>
public class MdWorkstationMachine : Entity<int>
{
    /// <summary>
    /// 工作站ID
    /// </summary>
    [Required]
    public long WorkstationId { get; set; }

    /// <summary>
    /// 设备ID
    /// </summary>
    [Required]
    public long MachineryId { get; set; }

    /// <summary>
    /// 设备编码 (长度: 64)
    /// 不允许为空
    /// </summary>
    [Required]
    [StringLength(50)]
    public string MachineryCode { get; set; } = string.Empty;

    /// <summary>
    /// 设备名称 (长度: 255)
    /// </summary>
    [StringLength(255)]
    public string MachineryName { get; set; } = string.Empty;

    /// <summary>
    /// 数量 (默认值: 1)页面不展示
    /// </summary>
    public int Quantity { get; set; } = 1;

    /// <summary>
    /// 备注 (长度: 500)
    /// </summary>
    [StringLength(500)]
    public string Remark { get; set; }=string.Empty;

    /// <summary>
    /// 创建人 (长度: 64)
    /// </summary>
    [StringLength(64)]
    public string? CreateBy { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime? CreateTime { get; set; }

    /// <summary>
    /// 更新人 (长度: 64)
    /// </summary>
    [StringLength(64)]
    public string? UpdateBy { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }
}

